# $Id: PKGBUILD 61016 2011-12-20 16:24:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=arm-wince-cegcc-cegccdll-dummy
pkgver=0.59.1
pkgrel=3
_prefix=/opt/cegcc
pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
arch=(any)
license=('GPL')
options=(!libtool !strip)
url="http://cegcc.sf.net"
depends=()
makedepends=('arm-wince-cegcc-binutils')
source=(http://arch.p5n.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b')

build() {
  cd $srcdir/cegcc/src/

  export PATH=$_prefix/bin:$PATH

  cd cegcc/fakecegccdll
  ./install.sh $pkgdir/$_prefix

  find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \;
}
